toJsonWithStabilID method

Map<String, dynamic> toJsonWithStabilID(
  1. TextStyleEntity e
)

Implementation

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