ResendListApiKeysResponseApiKey.fromJson constructor

ResendListApiKeysResponseApiKey.fromJson(
  1. Json json
)

Factory method for creating a ResendListApiKeysResponseApiKey instance from a JSON object

Implementation

factory ResendListApiKeysResponseApiKey.fromJson(Json json) {
  return ResendListApiKeysResponseApiKey(
      apiKeyId: json['id'] as String,
      name: json['name'] as String,
      createdAt: DateTime.parse(json['created_at'] as String));
}