NomoSizes.fromJson constructor
NomoSizes.fromJson(
- Map<String, dynamic> json
)
Implementation
factory NomoSizes.fromJson(Map<String, dynamic> json) {
return NomoSizes(
maxContentWidth: json['maxContentWidth'] as double?,
fontSizeB1: json['fontSizeB1'] as double,
fontSizeB2: json['fontSizeB2'] as double,
fontSizeB3: json['fontSizeB3'] as double,
fontSizeH1: json['fontSizeH1'] as double,
fontSizeH2: json['fontSizeH2'] as double,
fontSizeH3: json['fontSizeH3'] as double,
spacing1: json['spacing1'] as double,
spacing2: json['spacing2'] as double,
spacing3: json['spacing3'] as double,
);
}