fromJson static method

CanSendGiftResultFail? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static CanSendGiftResultFail? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return CanSendGiftResultFail(
    reason: FormattedText.fromJson(tdMapFromJson(json['reason'])),
  );
}