ProjectRuntimeInfo.fromJson constructor

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

Implementation

factory ProjectRuntimeInfo.fromJson(Map<String, dynamic> json) {
  final options = json['options'];
  return ProjectRuntimeInfo(
    name: '${json['name'] ?? ''}',
    options: options is Map
        ? options.map((key, value) => MapEntry('$key', value))
        : null,
  );
}