LiquidityPoolResponseLinks.fromJson constructor

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

Implementation

factory LiquidityPoolResponseLinks.fromJson(Map<String, dynamic> json) =>
    LiquidityPoolResponseLinks(
      self: json['self'] == null
          ? throw Exception("self link is null in horizon response")
          : Link.fromJson(json['self']),
      transactions: json['transactions'] == null
          ? throw Exception("transaction links are null in horizon response")
          : Link.fromJson(json['transactions']),
      operations: json['operations'] == null
          ? throw Exception("operation links are null in horizon response")
          : Link.fromJson(json['operations']),
    );