StyleDataLoadedEventData.fromJson constructor Null safety

StyleDataLoadedEventData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

StyleDataLoadedEventData.fromJson(Map<String, dynamic> json)
    : begin = json['begin'],
      end = json['end'],
      type = EnumToString.fromString(StyleDataType.values,
          json['type'].toUpperCase().replaceAll("-", "_"))!;