toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (extensionRoot != null) 'extensionRoot': extensionRoot!,
      if (fetchTime != null) 'fetchTime': fetchTime!,
      if (hash != null) 'hash': hash!,
      if (lastOperationName != null) 'lastOperationName': lastOperationName!,
      if (name != null) 'name': name!,
      if (packageUri != null) 'packageUri': packageUri!,
      if (spec != null) 'spec': spec!,
      if (state != null) 'state': state!,
    };