Reddit.fromJson constructor

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

Implementation

Reddit.fromJson(Map<String, dynamic> json)
    : _campaign = json[
          'campaign']!, // Use the null assertion operator if you are sure the value won't be null
      _launch = json[
          'launch']!, // Use the null assertion operator if you are sure the value won't be null
      _media = json[
          'media']!, // Use the null assertion operator if you are sure the value won't be null
      _recovery = json[
          'recovery']!;