CreateLedgerResponse.fromJson constructor

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

Implementation

factory CreateLedgerResponse.fromJson(Map<String, dynamic> json) {
  return CreateLedgerResponse(
    arn: json['Arn'] as String?,
    creationDateTime: timeStampFromJson(json['CreationDateTime']),
    deletionProtection: json['DeletionProtection'] as bool?,
    name: json['Name'] as String?,
    state: (json['State'] as String?)?.toLedgerState(),
  );
}