ApiKeyModel.fromMap constructor

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

Returns a ApiKeyModel from the given map.

Implementation

factory ApiKeyModel.fromMap(Map<String, dynamic> map) {
  return ApiKeyModel(
    name: map['name'] ?? '',
    key: map['key'] ?? '',
    serviceType: map['serviceType'] ?? '',
    isDefault: map['isDefault'] ?? false,
  );
}