CapabilityUpdateOptions.fromJson constructor

CapabilityUpdateOptions.fromJson(
  1. Object? json
)

Implementation

factory CapabilityUpdateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CapabilityUpdateOptions(
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    requested: map['requested'] == null ? null : (map['requested'] as bool),
  );
}