JsonTypeBean.fromJson constructor

JsonTypeBean.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory JsonTypeBean.fromJson(Map<String, Object?> json) {
  return JsonTypeBean(
    type: json[r'type'] as String? ?? '',
    items: json[r'items'] as String?,
    system: json[r'system'] as String?,
    custom: json[r'custom'] as String?,
    customId: (json[r'customId'] as num?)?.toInt(),
    configuration: json[r'configuration'] as Map<String, Object?>?,
  );
}