Balance.fromJson constructor

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

Implementation

factory Balance.fromJson(Map<String, dynamic> json) => Balance(
      token: json['token'] == null
          ? null
          : List<TokenBalance>.from(
              json['token'].map((dynamic x) => TokenBalance.fromJson(x)),
            ),
      uco: json['uco']?.toInt(),
    );