AttributeBigint.fromMap constructor

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

Implementation

factory AttributeBigint.fromMap(
  Map<String, dynamic> map,
) {
  return AttributeBigint(
    key: map['key'].toString(),
    type: map['type'].toString(),
    status: enums.AttributeStatus.values.firstWhere(
      (e) => e.value == map['status'],
    ),
    error: map['error'].toString(),
    xrequired: map['required'],
    array: map['array'],
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    min: map['min'],
    max: map['max'],
    xdefault: map['default'],
  );
}