fromJSON static method

FrontEndMigrationStatus fromJSON(
  1. String data
)

Implementation

static FrontEndMigrationStatus fromJSON(String data) {
	switch (data) {
		case "STARTED":
			return FrontEndMigrationStatus.started;
		case "PAUSED":
			return FrontEndMigrationStatus.paused;
		case "ERROR":
			return FrontEndMigrationStatus.error;
		case "SUCCESS":
			return FrontEndMigrationStatus.success;
		default:
			throw ArgumentError('Invalid FrontEndMigrationStatus entry value $data');
		}
}