PurgeContextsRequest.fromJson constructor

PurgeContextsRequest.fromJson(
  1. Object? j
)

Implementation

factory PurgeContextsRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return PurgeContextsRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    filter: switch (json['filter']) {
      null => '',
      Object $1 => decodeString($1),
    },
    force: switch (json['force']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}