Provider.fromMap constructor

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

Implementation

factory Provider.fromMap(Map<String, dynamic> map) {
  return Provider(
    $id: map['\$id'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    name: map['name'].toString(),
    provider: map['provider'].toString(),
    enabled: map['enabled'],
    type: map['type'].toString(),
    credentials: map['credentials'],
    options: map['options'],
  );
}