CreateDatastoreResponse.fromJson constructor

CreateDatastoreResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreateDatastoreResponse.fromJson(Map<String, dynamic> json) {
  return CreateDatastoreResponse(
    datastoreArn: json['datastoreArn'] as String?,
    datastoreName: json['datastoreName'] as String?,
    retentionPeriod: json['retentionPeriod'] != null
        ? RetentionPeriod.fromJson(
            json['retentionPeriod'] as Map<String, dynamic>)
        : null,
  );
}