ChatBoostSourceGiftCode.fromJson constructor

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

Creates a ChatBoostSourceGiftCode object from a JSON object.

Implementation

factory ChatBoostSourceGiftCode.fromJson(Map<String, dynamic> json) {
  return ChatBoostSourceGiftCode(
    user: User.fromJson(json['user']),
  );
}