toJson method

  1. @override
Map<String, dynamic> toJson(
  1. TextStyleEntity e
)
override

Return a json from this instance

Implementation

@override
Map<String, dynamic> toJson(final TextStyleEntity e) => {
      typeKey: 'text',
      branchKey: e.branchID,
      nameKey: e.name,
      propertiesKey: {
        familyKey: e.fontFamily,
        sizeKey: e.fontSize.toJson(),
        weightKey: e.fontWeight.toJson()
      }
    };