HeadingBaseStyle.fromJson constructor Null safety

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

Implementation

HeadingBaseStyle.fromJson(Map<String, dynamic> json) {
  _color = json['color'];
  _dDark = json['_dark'] != null ? Dark.fromJson(json['_dark']) : null;
  _fontWeight = json['fontWeight'];
  _lineHeight = json['lineHeight'];
}