DataFieldItem.fromMap constructor

DataFieldItem.fromMap(
  1. Map m, {
  2. String? id,
  3. String? label,
  4. String? value,
  5. String? type,
})

Crate a Field Item object from a Map supplying a identifier, a label, a value and a maybe a type of value.

Implementation

DataFieldItem.fromMap(
  Map<dynamic, dynamic> m, {
  String? id,
  String? label,
  String? value,
  String? type,
}) {
  //
  keys(id: id, label: label, value: value, type: type);

  this.id = m[_id];
  this.label = m[_label];
  this.value = m[_value];
  this.type = m[_type];
}