fromJson static method

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

Implementation

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

  return ChatBackground(
    background: Background.fromJson(tdMapFromJson(json['background'])),
    darkThemeDimming: (json['dark_theme_dimming'] as int?) ?? 0,
  );
}