ApplicationProperty.fromJson constructor

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

Implementation

factory ApplicationProperty.fromJson(Map<String, Object?> json) {
  return ApplicationProperty(
    allowedValues: (json[r'allowedValues'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    defaultValue: json[r'defaultValue'] as String?,
    desc: json[r'desc'] as String?,
    example: json[r'example'] as String?,
    id: json[r'id'] as String?,
    key: json[r'key'] as String?,
    name: json[r'name'] as String?,
    type: json[r'type'] as String?,
    value: json[r'value'] as String?,
  );
}