ConstructionMetadataResponse.fromJson constructor

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

Implementation

factory ConstructionMetadataResponse.fromJson(Map<String, dynamic> map) {
  return ConstructionMetadataResponse(
    map['metadata'],
    map['suggested_fee'] != null
        ? (map['suggested_fee'] as List)
            .map((e) => Amount.fromJson(e))
            .toList()
        : null,
  );
}