DatePicker.fromJSON constructor
DatePicker.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory DatePicker.fromJSON(Map<String, dynamic> data) {
return DatePicker(
(data["field"] as String),
rows: (data["rows"] as int?),
columns: (data["columns"] as int?),
shortLabel: (data["shortLabel"] as String?),
grows: (data["grows"] as bool?),
multiline: (data["multiline"] as bool?),
schema: (data["schema"] as String?),
tags: (data["tags"] as List<dynamic>?)?.map((x0) => (x0 as String) ).toList(),
codifications: (data["codifications"] as List<dynamic>?)?.map((x0) => (x0 as String) ).toList(),
options: (data["options"] as Map<String, dynamic>?)?.map((k0, v0) => MapEntry((k0 as String), (v0 as String))),
labels: (data["labels"] as Map<String, dynamic>?)?.map((k0, v0) => MapEntry((k0 as String), (v0 as String))),
value: (data["value"] as String?),
unit: (data["unit"] as String?),
required: (data["required"] as bool?),
hideCondition: (data["hideCondition"] as String?),
now: (data["now"] as bool?),
translate: (data["translate"] as bool?),
);
}