ConstructionPayloadsRequest.fromJson constructor

ConstructionPayloadsRequest.fromJson(
  1. Map<String, dynamic> map
)

Implementation

factory ConstructionPayloadsRequest.fromJson(Map<String, dynamic> map) {
  return ConstructionPayloadsRequest(
    NetworkIdentifier.fromJson(map['network_identifier']),
    (map['operations'] as List).map((e) => Operation.fromJson(e)).toList(),
    map['metadata'],
    map['public_keys'] != null
        ? (map['public_keys'] as List)
            .map((e) => PublicKey.fromJson(e))
            .toList()
        : null,
  );
}