ApiKeyModel.fromMap constructor
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,
);
}