onResonse method

  1. @override
TronAccountModel? onResonse(
  1. Map<String, dynamic> result
)
override

Converts the response result to the specified type RESULT.

Implementation

@override
TronAccountModel? onResonse(result) {
  if (result.isEmpty) {
    return null;
  }
  return TronAccountModel.fromJson(result);
}