FontSource.fromJson constructor

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

Implementation

factory FontSource.fromJson(Map<String, dynamic> json) => FontSource(
      location: ResourceLocation.fromJson(
        json['location'] as Map<String, dynamic>,
      ),
      fontFormat: FontFormat.fromJson(json['fontFormat'] as String),
    );