fromJson static method

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

Implementation

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

  return InputChatPhotoPrevious(
    chatPhotoId:
        int.tryParse((json['chat_photo_id'] as dynamic)?.toString() ?? '') ??
        0,
  );
}