fromJson static method

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

Implementation

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

  return InputBackgroundRemote(
    backgroundId:
        int.tryParse((json['background_id'] as dynamic)?.toString() ?? '') ??
        0,
  );
}