Variable.fromMap constructor

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

Implementation

factory Variable.fromMap(Map<String, dynamic> map) {
  return Variable(
    $id: map['\$id'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    key: map['key'].toString(),
    value: map['value'].toString(),
    resourceType: map['resourceType'].toString(),
    resourceId: map['resourceId'].toString(),
  );
}