fromJson static method

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

Implementation

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

  return BackgroundTypeChatTheme(
    themeName: (json['theme_name'] as String?) ?? '',
  );
}