CapacitySize.fromJson constructor

CapacitySize.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CapacitySize.fromJson(Map<String, dynamic> json) {
  return CapacitySize(
    type: (json['Type'] as String).toCapacitySizeType(),
    value: json['Value'] as int,
  );
}