BundleFont.fromJson constructor

BundleFont.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory BundleFont.fromJson(Map<String, Object?> json) => BundleFont(
  family: json['family']! as String,
  path: json['path']! as String,
  bold: json['bold'] as bool? ?? false,
  italic: json['italic'] as bool? ?? false,
);