toEntity method

FontEntity toEntity({
  1. String? appId,
})

Implementation

FontEntity toEntity({String? appId}) {
  return FontEntity(
    fontName: (fontName != null) ? fontName : null,
    size: (size != null) ? size : null,
    weight: (weight != null) ? weight!.index : null,
    style: (style != null) ? style!.index : null,
    decoration: (decoration != null) ? decoration!.index : null,
    color: (color != null) ? color!.toEntity(appId: appId) : null,
  );
}