using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bellwether.Model
{
    public class SolarenergyCapacityModel
    {
        public string Area { get; set; }
        public string Capacity { get; set; }

        public static SolarenergyCapacityModel Parse(SolarenergyCapacityRawModel rawModel)
        {
            if (rawModel is null)
            {
                return new SolarenergyCapacityModel();
            }

            return new SolarenergyCapacityModel()
            {
                Area = rawModel.Area ?? "",
                Capacity = rawModel.Capacity ?? "",
            };
        }
    }

    public class SolarenergyCapacityRawModel
    {
        public string Area { get; set; }
        public string Capacity { get; set; }
    }
}
