toJsonWithId method

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

Implementation

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