AttributeFloat.fromMap constructor

AttributeFloat.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory AttributeFloat.fromMap(Map<String, dynamic> map) {
  return AttributeFloat(
    key: map['key'].toString(),
    type: map['type'].toString(),
    status: map['status'].toString(),
    error: map['error'].toString(),
    xrequired: map['required'],
    array: map['array'],
    min: map['min']?.toDouble(),
    max: map['max']?.toDouble(),
    xdefault: map['default']?.toDouble(),
  );
}