OperationInfo.fromJson constructor

OperationInfo.fromJson(
  1. Object? j
)

Implementation

factory OperationInfo.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return OperationInfo(
    responseType: switch (json['responseType']) {
      null => '',
      Object $1 => decodeString($1),
    },
    metadataType: switch (json['metadataType']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}