fromJson method

  1. @override
TextStyleEntity fromJson(
  1. Map<String, dynamic> json
)
override

For a single instance

Implementation

@override
TextStyleEntity fromJson(final Map<String, dynamic> json) => TextStyleEntity(
    id: json[idKey],
    stabilID: json[_stabilID],
    branchID: json[branchKey],
    name: json[nameKey],
    fontFamily: json[propertiesKey][familyKey],
    fontSize: json[propertiesKey][sizeKey] != null
        ? FFontSize.fromJson(json[propertiesKey][sizeKey])
        : const FFontSize(),
    fontWeight: FFontWeight.fromJson(
      '${json[propertiesKey][weightKey]}',
    ));