fromJson static method

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

Implementation

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

  return InputBackgroundPrevious(
    messageId: (json['message_id'] as int?) ?? 0,
  );
}