SizeWithAspect.fromJSON constructor

SizeWithAspect.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

SizeWithAspect.fromJSON(Map<String, dynamic> json)
    : this(DoubleWithUnit.fromJSON(json['size']), (json['aspect'] as num).toDouble());