fromJson static method

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

Implementation

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

  return MessageSelfDestructTypeTimer(
    selfDestructTime: (json['self_destruct_time'] as int?) ?? 0,
  );
}