ApiKeyIds.fromJson constructor

ApiKeyIds.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ApiKeyIds.fromJson(Map<String, dynamic> json) {
  return ApiKeyIds(
    ids: (json['ids'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    warnings: (json['warnings'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}