toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (etag != null) 'etag': etag!,
      if (name != null) 'name': name!,
      if (parent != null) 'parent': parent!,
      if (scopes != null) 'scopes': scopes!,
      if (title != null) 'title': title!,
    };