NBFontWeights.fromJson constructor Null safety

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

Implementation

NBFontWeights.fromJson(Map<String, dynamic> json) {
  _hairline = json['hairLine'];
  _thin = json['thin'];
  _light = json['light'];
  _normal = json['normal'];
  _medium = json['medium'];
  _semibold = json['semiBold'];
  _bold = json['bold'];
  _extrabold = json['extraBold'];
  _black = json['black'];
  _extraBlack = json['extraBlack'];
}