Header.fromJson constructor

Header.fromJson(
  1. dynamic json
)

Implementation

factory Header.fromJson(dynamic json) => json is List
    ? Header(
        numRequiredSignatures: json.first as int,
        numReadonlyUnsignedAccounts: json[1] as int,
        numReadonlySignedAccounts: json[2] as int,
      )
    : _$HeaderFromJson(json as Map<String, dynamic>);